﻿@model HitMapsNew.Models.UserRegistrationModel

@{
    ViewBag.Title = "Register";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<section id="registarionForm">
    <h2>הרשמה</h2>
    @using (Html.BeginForm())
    {
        @Html.AntiForgeryToken()
        @Html.ValidationSummary(true)

        <fieldset>
            <legend>הרשמה</legend>
            <b>@Model.Message</b>
            <ul>
                <li>
                    <label>שם משתמש:</label>
                    @Html.TextBoxFor(m => m.UserName)
                    @Html.ValidationMessageFor(m => m.UserName)
                </li>
                <li>
                    <label>סיסמא:</label>
                    @Html.PasswordFor(m => m.Password)
                    @Html.ValidationMessageFor(m => m.Password)
                </li>
                <li>
                    <label>סיסמא שוב:</label>
                    @Html.PasswordFor(m => m.ReTypePassword)
                    @Html.ValidationMessageFor(m => m.ReTypePassword)
                </li>
            </ul>
            <input type="submit" value="הירשם" />
        </fieldset>
        <p>
            @Html.ActionLink("התחבר", "Login", "Account") אם כבר יש לך חשבון
        </p>
    }
</section>
